/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tetris;

import java.awt.*;
import javax.swing.*;

/**
 *
 * @author CJ
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        GameEngine engine = new GameEngine();

        JFrame frame = new JFrame("Tetris");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setContentPane(engine);
        frame.pack();
        frame.setVisible(true);

        int millisecs = 15;

        Timer time = new Timer(millisecs, engine);
        time.start();
    }

}
